package net.yxsoft.controller.pc.sysmgt;

import com.jfinal.aop.Clear;
import net.yxsoft.controller.pc.sysmgt.common.AuthController;
import net.yxsoft.service.ChianPackAgeService;

import java.io.IOException;

public class ChianPackAgeController extends AuthController {

    private static final ChianPackAgeService asr=ChianPackAgeService.INSTANCE;

    /**
    * 区块链节点打包功能
    * */
    @Clear
    public  void CreatePackageFolder() throws IOException {
        String chainId = getPara("chainId");
        String orgIds = getPara("orgIds");
        String cid = getPara("cid");
        String appPath = getPara("appPath");
        renderJson(asr.CreatePackageFolder(chainId,orgIds,cid,appPath));
    }

    /**
     * 区块链虚拟化节点打包功能
     * */
    @Clear
    public  void packageChainmakerVm() throws IOException {
        String chainId = getPara("chainId");
        String orgId = getPara("orgId");
        String cid = getPara("cid");
        String appPath = getPara("appPath");
        renderJson(asr.packageChainmakerVm(chainId,orgId,cid,appPath));
    }


}
